package com.xy.repository;

import com.xy.domain.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
* @author ye
* @description 针对表【t_user】的数据库操作Mapper
* @createDate 2022-01-16 09:16:09
* @Entity com.xy.domain.TaskExamCustomerAnswer.User
*/
@Mapper
public interface UserMapper extends BaseMapper<User>{

    User selectByPrimaryKey(Long id);
    List<User> listUsers();

    User getUserByNumOrPhone(Long numOrPhone);
    void deleteUsersByIds(List<Integer> ids);
    Integer selectAllCount();
    List<User> selectByIds(List<Integer> ids);

    User getUserByUserName(String username);


    List<User> userPageList(Map<String, Object> map);
    /**
     * userPageCount
     *
     * @param map map
     * @return Integer
     */
    Integer userPageCount(Map<String, Object> map);
    /**
     * @param
     * @return List<User>
     */
    List<User> userPage(Integer roleType, String realName);

}
